interface Context extends GlobalContext{
  [key:string]:any
}
class GlobalContext{
  private static instance: Context;
  private _uiContexts = new Map<string,any>();
  public static getInstance():Context{
    if (!GlobalContext.instance) {
      GlobalContext.instance = new GlobalContext();
    }
    return GlobalContext.instance
  }
  set(key:string,value:any){
    this._uiContexts.set(key,value)
  }
  get(key:string){
    return this._uiContexts.get(key)
  }
}
export default GlobalContext